import request from '@/utils/request'
import API from './constants'

/**
 * 用户登录请求
 * @param {*} user
 * @returns
 */
export const loginAsync = user => request({
  url: API.LOGIN_API,
  method: 'POST',
  data: user,
})
